package com.onstar.cn.common.exception;

public class OnStarException extends Exception {

	private static final long serialVersionUID = 1L;
	private String errorCode;

	public OnStarException() {
		super();
	}

	public OnStarException(String detailMessage, Throwable throwable) {
		super(detailMessage, throwable);
	}

	public OnStarException(String detailMessage) {
		super(detailMessage);
	}

	public OnStarException(Throwable throwable) {
		super(throwable);
	}

	public OnStarException(String errorCode, String detailMessage) {
		super(detailMessage);
		this.errorCode = errorCode;
	}

	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}
}
